/*
 *NOTE:Auto generated service implement
*/
package com.surfilter.modules.stat.service.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Service;

import com.surfilter.modules.stat.model.HtComModel;
import com.surfilter.modules.stat.model.HtComUserModel;
import com.surfilter.modules.stat.dao.HtComDao;
import com.surfilter.modules.stat.dao.HtComUserDao;
import com.surfilter.modules.stat.service.StatMgrService;
import com.surfilter.platform.base.model.ActionPermission;
import com.surfilter.platform.base.model.PageInfo;
import com.surfilter.platform.base.model.ParameterClassType;
import com.surfilter.platform.base.model.ParameterInfo;
import com.surfilter.platform.base.model.ParameterMapper;
import com.surfilter.platform.base.model.PermissionMethodType;
import com.surfilter.platform.base.service.ServiceBase;

@Service(value = "statMgrService")
public class StatMgrServiceImpl extends ServiceBase implements StatMgrService {

	@Resource
	private HtComDao htComDao;
	@Resource
	private HtComUserDao htComUserDao;

	
	@ActionPermission(actionName = "addHtCom",remark = "")
	public java.lang.Integer addHtCom(HtComModel htComModel, HttpServletRequest request) {
		return htComDao.addHtCom(htComModel);
	}
	
	@ActionPermission(actionName = "chgHtCom",remark = "")
	public void chgHtCom(HtComModel htComModel, HttpServletRequest request) {
		htComDao.chgHtCom(htComModel);
	}
	
	@ActionPermission(actionName = "delHtCom",remark = "")
	public void delHtCom(HtComModel htComModel, HttpServletRequest request) {
		htComDao.delHtCom(htComModel);
	}
	
	@ActionPermission(actionName = "getHtComs",remark = "")
	public List<HtComModel> getHtComs(HtComModel htComModel, HttpServletRequest request) {
		return htComDao.getHtComs(htComModel, PageInfo.getPageInfo(request));
	}
	
	@ActionPermission(actionName = "delHtComs",remark = "")
	@ParameterMapper({ @ParameterInfo(mapName = "ids", componentType = Integer.class, index = 0, mapType = ParameterClassType.ARRAY) })
	public boolean delHtComs(List<java.lang.Integer> ids){
		htComDao.delHtComs(ids);
		return true;
	}
	
	@ActionPermission(actionName = "getHtComsCount",remark = "")
	public int getHtComsCount(HtComModel htComModel) {
		return htComDao.getHtComsCount(htComModel);
	}
	
	
	@ActionPermission(actionName = "addHtComUser",remark = "")
	public java.lang.Integer addHtComUser(HtComUserModel htComUserModel, HttpServletRequest request) {
		return htComUserDao.addHtComUser(htComUserModel);
	}
	
	@ActionPermission(actionName = "chgHtComUser",remark = "")
	public void chgHtComUser(HtComUserModel htComUserModel, HttpServletRequest request) {
		htComUserDao.chgHtComUser(htComUserModel);
	}
	
	@ActionPermission(actionName = "delHtComUser",remark = "")
	public void delHtComUser(HtComUserModel htComUserModel, HttpServletRequest request) {
		htComUserDao.delHtComUser(htComUserModel);
	}
	
	@ActionPermission(actionName = "getHtComUsers",remark = "")
	public List<HtComUserModel> getHtComUsers(HtComUserModel htComUserModel, HttpServletRequest request) {
		return htComUserDao.getHtComUsers(htComUserModel, PageInfo.getPageInfo(request));
	}
	
	@ActionPermission(actionName = "delHtComUsers",remark = "")
	@ParameterMapper({ @ParameterInfo(mapName = "ids", componentType = Integer.class, index = 0, mapType = ParameterClassType.ARRAY) })
	public boolean delHtComUsers(List<java.lang.Integer> ids){
		htComUserDao.delHtComUsers(ids);
		return true;
	}
	
	@ActionPermission(actionName = "getHtComUsersCount",remark = "")
	public int getHtComUsersCount(HtComUserModel htComUserModel) {
		return htComUserDao.getHtComUsersCount(htComUserModel);
	}
	}
